package com.sun.controller;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sun.common.MsResult;
import com.sun.service.IPmsBrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 品牌表 前端控制器
 * </p>
 *
 * @author 妙妙屋
 * @since 2021-12-29
 */
@RestController
@RequestMapping("/brand")
public class PmsBrandController {
    @Autowired
    private IPmsBrandService pmsBrandService;

    @GetMapping("/list")
    public MsResult list(Long pageNum,Long pageSize){
        IPage page = pmsBrandService.list(pageNum,pageSize);
        return MsResult.isOkDataPage(page);
    }
}

